package com.cstz.enums;


public enum EnumProjectJoinType {
    ALL(0, "全员参与"),
    CHOOSE(1, "选择参与人");

    private int value;
    private String name;

    private EnumProjectJoinType(int value, String name){
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public static String fmtValue(Integer value){
    	if(value==null){
    		return "";
    	}
    	
    	EnumProjectJoinType[] arr = EnumProjectJoinType.values();
    	for(EnumProjectJoinType t : arr){
    		if(t.getValue() == value){
    			return t.getName();
    		}
    	}
    	
    	return "";
    }
}
